package com.cupster.func_db_dbflow5;

import android.content.Context;

import com.cupster.func_db_dbflow5.db_main.AppDB;
import com.dbflow5.config.DatabaseConfig;
import com.dbflow5.config.DatabaseHolder;
import com.dbflow5.config.FlowConfig;
import com.dbflow5.config.FlowManager;
import com.dbflow5.database.DatabaseWrapper;

public class DBManager {
    public static void  init(Context context){
        FlowManager.init(context);
    }


    public static void switchAppDB(){
        FlowManager.getDatabase(AppDB.DB_NAME).reset();
    }

    public static DatabaseWrapper getAppDB(){
        return FlowManager.getDatabase(AppDB.DB_NAME);
    }
}
